snapshot: switch to h/vradius
authorMatthias Clasen <mclasen@redhat.com>
Sat, 12 Sep 2020 13:17:02 +0000 (09:17 -0400)
committerTimm Bäder <mail@baedert.org>
Fri, 18 Sep 2020 13:39:07 +0000 (15:39 +0200)
gtk/gtksnapshot.c
gtk/gtksnapshot.h

index 123bfcd773985a3eedf2b5c13877eb62eefaabee..3b7c5173a81e24769ba4e297005946bf7734917c 100644 (file)
@@ -1971,8 +1971,8 @@ void
 gtk_snapshot_append_radial_gradient (GtkSnapshot            *snapshot,
                                      const graphene_rect_t  *bounds,
                                      const graphene_point_t *center,
-                                     float                   radius,
-                                     float                   scale,
+                                     float                   hradius,
+                                     float                   vradius,
                                      float                   start,
                                      float                   end,
                                      const GskColorStop     *stops,
@@ -1995,8 +1995,8 @@ gtk_snapshot_append_radial_gradient (GtkSnapshot            *snapshot,
 
   node = gsk_radial_gradient_node_new (&real_bounds,
                                        &real_center,
-                                       radius,
-                                       scale,
+                                       hradius * scale_x,
+                                       vradius * scale_y,
                                        start,
                                        end,
                                        stops,
@@ -2009,8 +2009,8 @@ void
 gtk_snapshot_append_repeating_radial_gradient (GtkSnapshot            *snapshot,
                                                const graphene_rect_t  *bounds,
                                                const graphene_point_t *center,
-                                               float                   radius,
-                                               float                   scale,
+                                               float                   hradius,
+                                               float                   vradius,
                                                float                   start,
                                                float                   end,
                                                const GskColorStop     *stops,
@@ -2033,8 +2033,8 @@ gtk_snapshot_append_repeating_radial_gradient (GtkSnapshot            *snapshot,
 
   node = gsk_repeating_radial_gradient_node_new (&real_bounds,
                                                  &real_center,
-                                                 radius,
-                                                 scale,
+                                                 hradius * scale_x,
+                                                 vradius * scale_y,
                                                  start,
                                                  end,
                                                  stops,
index 9be3382a5239240085d0857c04e3f5e24bc08f4e..e3c0e17e653cde5d183aebfc6633c3343b28a8a0 100644 (file)
@@ -168,8 +168,8 @@ GDK_AVAILABLE_IN_ALL
 void            gtk_snapshot_append_radial_gradient     (GtkSnapshot            *snapshot,
                                                          const graphene_rect_t  *bounds,
                                                          const graphene_point_t *center,
-                                                         float                   radius,
-                                                         float                   scale,
+                                                         float                   hradius,
+                                                         float                   vradius,
                                                          float                   start,
                                                          float                   end,
                                                          const GskColorStop     *stops,
@@ -178,8 +178,8 @@ GDK_AVAILABLE_IN_ALL
 void            gtk_snapshot_append_repeating_radial_gradient (GtkSnapshot            *snapshot,
                                                                const graphene_rect_t  *bounds,
                                                                const graphene_point_t *center,
-                                                               float                   radius,
-                                                               float                   scale,
+                                                               float                   hradius,
+                                                               float                   vradius,
                                                                float                   start,
                                                                float                   end,
                                                                const GskColorStop     *stops,